home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / CFMExamples / SIOWExamples / Makefile < prev   
Encoding:
Makefile  |  1998-12-03  |  1.9 KB  |  71 lines  |  [TEXT/MPS ]

  1. #   File:       Makefile
  2. #   Target:     count
  3. #   Sources:    Count.c
  4. #   Created:    Monday, September 17, 1990 10:13:20 AM
  5. #    Modified:    Thursday, March 09, 1995 10:00:00 AM
  6.  
  7.  
  8. SymOpt         = -sym off        # set to "-sym Full" to generate a .SYM file
  9. C            = SC
  10. COptions    = -model cfmseg -proto strict -ansi on {SymOpt}
  11.  
  12. PC            =    MrC
  13. PCOptions    =    {SymOpt} -w 17
  14.  
  15. .c.x    ƒ    .c
  16.     {PC} {DepDir}{Default}.c -o {TargDir}{Default}.c.x {PPCCOptions}
  17.  
  18. .c.n.o    ƒ    .c
  19.     {C} {DepDir}{Default}.c -o {TargDir}{Default}.c.n.o {COptions}
  20.  
  21. ###############################################################################
  22.  
  23. OBJS = Count.c.n.o
  24. PPCOBJS = Count.c.x
  25.  
  26. ###############################################################################
  27.  
  28. Count    ƒƒ    Count.cfm.68k Count.ppc
  29.     Duplicate -y Count.ppc Count
  30.     echo "include ∂"Count.cfm.68k∂" 'CODE';" | Rez -a -o Count
  31.     If "`Exists Count.ppc.xSYM`"
  32.         Duplicate -y Count.ppc.xSYM Count.xSYM
  33.     End
  34.     If "`Exists Count.cfm.68k.SYM`"
  35.         Duplicate -y Count.cfm.68k.SYM Count.SYM
  36.     End
  37.  
  38.  
  39. ###############################################################################
  40.  
  41. Count.cfm.68k    ƒƒ    {OBJS}
  42.     ILink -c 'moda' -t APPL -map > Count.cfm.68k.map -d ∂
  43.         -model cfmseg -mf {SymOpt} ∂
  44.         {OBJS} ∂
  45.         "{CFM68KLibraries}"NuSIOW.o ∂
  46.         "{CFM68KLibraries}"NuMacRuntime.o ∂
  47.         "{SharedLibraries}"StdCLib ∂
  48.         "{SharedLibraries}"InterfaceLib ∂
  49.         -o {Targ}
  50.  
  51. Count.cfm.68k ƒƒ "{RIncludes}"SIOW.r
  52.     Rez -a "{Rincludes}"SIOW.r -o {Targ}
  53.  
  54. ###############################################################################
  55.  
  56. Count.ppc    ƒƒ    {PPCOBJS}
  57.     PPCLink {SymOpt} -dead on -mf -map Count.ppc.map ∂
  58.         {PPCOBJS}     ∂
  59.         "{PPCLibraries}"PPCSIOW.o ∂
  60.         "{PPCLibraries}"PPCCRuntime.o ∂
  61.         "{SharedLibraries}"InterfaceLib ∂
  62.         "{SharedLibraries}"StdCLib ∂
  63.         -t APPL -c '????' ∂
  64.         -o Count.ppc
  65.     If "{SymOpt}" =~ /≈[NnUu]+≈/
  66.         MakeSYM -w Count.ppc.xcoff -o Count.ppc.xSYM
  67.     End
  68.  
  69. Count.ppc ƒƒ "{RIncludes}"SIOW.r
  70.     Rez -a "{Rincludes}"SIOW.r -o {Targ} -d APPNAME=∂"Count∂"
  71.